Xbasic

Office::Excel2003DocumentAddSheetFromDBF Method

Syntax

.AddSheetFromDBF as Office::Spreadsheet (Table as P, SheetName as C [, IncludeHeadings as L [, RowsToCopy as N [, StartRow as N [, ReferenceColumns as P [, UserContext as P]]]]])

Arguments

TablePointer

The DBF table.

SheetNameCharacter

The spreadsheet name.

IncludeHeadingsLogical

Default = .T.. If .T., headings will be included in the spreadsheet.

RowsToCopyNumeric

Default = -1. The number of rows to copy. If -1, all rows will be copied.

StartRowNumeric

Default = -1. The first row to copy.

ReferenceColumnsSQL::TableInfo

Default = null_value(). Specify advanced data transformations using a SQL::TableInfo object.

UserContextPointer

Default = null_value(). A context object used to perform advanced data transformations.

Returns

resultOffice::Spreadsheet

Returns the spreadsheet.

Description

Create a new spreadsheet from a DBF file and add it to the document.

See Also